package com.wanlian.fileserver;

import com.wanlian.fileserver.device.DeviceFileApplication;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class FileServerApplication {

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(FileServerApplication.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
        try {
            new DeviceFileApplication().runFileServer();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

}
